package com.zhuiYun.project.api.alipay.service;

import com.alipay.api.AlipayApiException;
import com.zhuiYun.project.api.alipay.entity.AlipayEntity;

import java.util.Map;

/**
 * lzy 2022-8-15 19点40分
 * 支付宝当面付接口
 */
public interface AlipayService {

    /**
    * @Description 连接支付宝当面付接口，传入价格、商品编号返回支付二维码
    * @Author lzy
    * @Date 2023/4/12 13:47
    * @Return java.util.Map<java.lang.String,java.lang.Object>
    * @param alipayEntity
    */
    Map<String,Object> qecode(AlipayEntity alipayEntity) throws AlipayApiException;

    /**
     * 询问订单状态
     * lzy 2022-8-16 09点46分6
     * @param code
     * @return
     * @throws AlipayApiException
     */
    Map<String, Object> query(String code) throws AlipayApiException;
}
